<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hello</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/stockdata.js"></script>
<script type="text/javascript" src="js/funddataforsearch.js"></script>
<script type="text/javascript" src="js/AutoPicker.js"></script>
<script type="text/javascript" src="js/fundManagers.js"></script>
<script type="text/javascript">
	$(function(){
		var ap = new autoPicker("txtKeyword",{},fundArray_Open);
		$("#searchType").on('change',function(){
			var checkIndex=$("#searchType ").get(0).selectedIndex; 
			var dataSource=[];
		if (checkIndex==0) {
			dataSource=fundArray_Open;
		}else if(checkIndex==1){
			dataSource=stocks;
		}else if(checkIndex==2){
			dataSource=fundManagers;
		}
		ap.reBind(dataSource);
		});
	});
</script>
</head>
<body>
	<select id="searchType">
		<option>基金</option>
		<option>股票</option>
		<option>基金经理</option>
		<option>基金公司</option>
	</select><input type="text" id="txtKeyword" /><button id="btnSearch">Search</button>
</body>
</html>